package com.yearner.reviewplan.manage.system.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yearner.reviewplan.manage.system.entity.UserPerm;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 权限表
 *
 * @author pengyg
 * @email ${email}
 * @date 2020-02-14 20:42:33
 */
@Mapper
public interface UserPermDao extends BaseMapper<UserPerm> {
    List<UserPerm> selectRootMenu();

    List<UserPerm> getChildren(@Param("parentId") Integer parentId);
}
